package newRegFrm.model;

import java.util.Date;

public class Employee {
    private int empno;  //员工编码
    private String ename;  //员工姓名
    private String job;  //岗位
    private String mgr;   //上级领导
    private Date hiredata;  //雇佣时间
    private double sal;  //工资
    private double ofee;   //加时费
    private int deptno;  //部门的编号
    private Integer role;
    private String password;
    public Employee() {
    }

    public Employee(int empno, String ename, String job, String mgr, Date hiredata, double sal, double ofee, int deptno, Integer role, String password) {
        this.empno = empno;
        this.ename = ename;
        this.job = job;
        this.mgr = mgr;
        this.hiredata = hiredata;
        this.sal = sal;
        this.ofee = ofee;
        this.deptno = deptno;
        this.role = role;
        this.password = password;
    }

    public int getEmpno() {
        return empno;
    }

    public void setEmpno(int empno) {
        this.empno = empno;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getMgr() {
        return mgr;
    }

    public void setMgr(String mgr) {
        this.mgr = mgr;
    }

    public Date getHiredata() {
        return hiredata;
    }

    public void setHiredata(Date hiredata) {
        this.hiredata = hiredata;
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }

    public double getOfee() {
        return ofee;
    }

    public void setOfee(double ofee) {
        this.ofee = ofee;
    }

    public int getDeptno() {
        return deptno;
    }

    public void setDeptno(int deptno) {
        this.deptno = deptno;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "empno=" + empno +
                ", ename='" + ename + '\'' +
                ", job='" + job + '\'' +
                ", mgr='" + mgr + '\'' +
                ", hiredata=" + hiredata +
                ", sal=" + sal +
                ", ofee=" + ofee +
                ", deptno=" + deptno +
                ", role=" + role +
                ", password='" + password + '\'' +
                '}';
    }
}
